package com.zeta.eduservice.service;

import java.io.IOException;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zeta.eduservice.entity.question.EduQuestion;
import com.zeta.eduservice.entity.question.EduQuestionChoice;
import com.zeta.eduservice.entity.vo.QuestionQuery;
import com.zeta.eduservice.entity.vo.QuestionUploadVo;
import com.zeta.eduservice.entity.vo.questionVo;
import com.zeta.eduservice.entity.vo.front.EduQuestionVo;
import com.zeta.eduservice.entity.vo.front.PdfQuestionVo;


/**
 * <p>
 * 试题 服务类
 * </p>
 *
 * @author zeta
 * @since 2020-08-25
 */
public interface EduQuestionService extends IService<EduQuestion> {

	List<EduQuestion> getsByCourseId(String courseId);

	List<EduQuestionVo>  getsByfolderId(String folderId);

	List<PdfQuestionVo> getsPdfByfolderId(String folderId);

	void upload(MultipartFile file,QuestionUploadVo currChapterId, EduQuestionService questionService,ChapterAQuestionTypeSysAndQuestionService chapterAQuestionTypeSysAndquestionService ) throws IOException;

	List<questionVo> getQuestionsByQuestionTypeSys(Page<questionVo> page, QuestionQuery searchObj);

	List<questionVo> getByPaperTypeId(Page<questionVo> page, QuestionQuery searchObj);

	List<questionVo> getsByMidId(Page<questionVo> page, QuestionQuery searchObj);

	List<questionVo> getByPaperTypeId(QuestionQuery searchObj);

	

}
